<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="对FusionOne Compute生产环境执行资源扫描任务失败或结果延迟">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="foc_gud_0070.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="foc_gud_0078">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>对FusionOne Compute生产环境执行资源扫描任务失败或结果延迟</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="foc_gud_0078"></a><a name="foc_gud_0078"></a>
  <h1 class="topictitle1">对FusionOne Compute生产环境执行资源扫描任务失败或结果延迟</h1>
  <div>
   <div class="section">
    <h4 class="sectiontitle">现象描述</h4>
    <p>对FusionOne Compute生产环境执行资源扫描任务（包括资源接入后的自动触发、手动触发、周期性触发），在生产环境虚拟机数量较大（X千台量级）情况下，扫描任务超时失败，或者扫描结果有相对延迟（扫描结果为上一次触发的扫描结果）。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">可能原因</h4>
    <p>虚拟机数量较大，FusionOne Compute资源扫描可能超时。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">处理步骤</h4>
    <ol id="foc_gud_0078__fc_gud_0078_ol229094820278">
     <li id="foc_gud_0078__fc_gud_0078_li331241610329"><span>使用PuTTY，以<strong id="foc_gud_0078__fc_gud_0078_b17681859202311">admin</strong>账户登录存储系统CLI。</span></li>
     <li id="foc_gud_0078__fc_gud_0078_li7312111673211"><span>执行如下命令，进入GaussDB容器。</span><p></p><pre class="screen" id="foc_gud_0078__fc_gud_0078_screen1557511425518">change container_application view pod_name=gaussdb-0 namespace=dpa container_name=gaussdb</pre> <p></p></li>
     <li id="foc_gud_0078__fc_gud_0078_li1031211614327"><span>执行如下命令，进入PROTECT_MANAGER数据库。</span><p></p><pre class="screen" id="foc_gud_0078__fc_gud_0078_screen390215508519">sudo /opt/script/gauss_operation.sh "enter_sql" "PROTECT_MANAGER"</pre>
      <div class="p" id="foc_gud_0078__fc_gud_0078_p15803106152516">
       示例如下：
       <pre class="screen" id="foc_gud_0078__fc_gud_0078_screen16444411428">[GaussOp@gaussdb-0 gaussdb]$ sudo /opt/script/gauss_operation.sh "enter_sql" "PROTECT_MANAGER"
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 19170 0 19170 0 0 780k 0 --:--:-- --:--:-- --:--:-- 748k
[2022-09-26 09:17:25][INFO][login database: protect_manager.][GaussDB][55][enter_database]
gsql (9.2.4)
SSL connection (cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256)
Type "help" for help.

PROTECT_MANAGER=# </pre>
      </div> <p></p></li>
     <li id="foc_gud_0078__fc_gud_0078_li4610152912818"><a name="foc_gud_0078__fc_gud_0078_li4610152912818"></a><a name="fc_gud_0078_li4610152912818"></a><span>执行以下命令，修改任务允许的超时时间。</span><p></p><pre class="screen" id="foc_gud_0078__fc_gud_0078_screen1647812563">update t_config set VALUE='<em id="foc_gud_0078__fc_gud_0078_i124796213610">超时时间</em>' where KEY='agent_default_feign_readTimeOut';</pre>
      <div class="p" id="foc_gud_0078__fc_gud_0078_p279715449260">
       以超时时间设置为10分钟为例：
       <pre class="screen" id="foc_gud_0078__fc_gud_0078_screen2061113297284">update t_config set VALUE='600' where KEY='agent_default_feign_readTimeOut';</pre>
      </div> <p></p></li>
     <li id="foc_gud_0078__li119201834113011"><span>使用PuTTY工具以<strong id="foc_gud_0078__fc_gud_0078_zh-cn_topic_0000002164790296_zh-cn_topic_0000002200031305_b916917212">root</strong>账户登录待安装客户端的主机。</span></li>
     <li id="foc_gud_0078__fc_gud_0078_li0939738203016"><span>执行以下命令编辑客户端配置文件。客户端配置文件中的thrift_time_out参数的值需要与<a href="#foc_gud_0078__fc_gud_0078_li4610152912818">4</a>设置的超时时间一致。</span><p></p><p id="foc_gud_0078__fc_gud_0078_p1743510163298">以客户端安装目录为“/opt”为例：</p> <pre class="screen" id="foc_gud_0078__fc_gud_0078_screen16260817123011">vi /opt/DataBackup/ProtectClient/ProtectClient-E/conf/agent_cfg.xml</pre> <p id="foc_gud_0078__fc_gud_0078_p19542821018">在“agent_cfg.xml”中修改<strong id="foc_gud_0078__fc_gud_0078_b6330151817416">thrift_clent_send_timeout</strong>和<strong id="foc_gud_0078__fc_gud_0078_b743764393116">thrift_time_out</strong>参数的值为600000。</p> <p id="foc_gud_0078__fc_gud_0078_p076412178479"><span><img id="foc_gud_0078__fc_gud_0078_image9256142411109" src="zh-cn_image_0000002184591754.png"></span></p> <p></p></li>
     <li id="foc_gud_0078__fc_gud_0078_li25341145114913"><span>在“<em id="foc_gud_0078__fc_gud_0078_i594663910548">客户端安装目录</em>/DataBackup/ProtectClient”目录下依次执行<strong id="foc_gud_0078__fc_gud_0078_b137491225677">sh </strong><strong id="foc_gud_0078__fc_gud_0078_b105337456492">stop.sh</strong>和<strong id="foc_gud_0078__fc_gud_0078_b158331533872">sh </strong><strong id="foc_gud_0078__fc_gud_0078_b111341458104920">start.sh</strong>命令，重启客户端。</span></li>
     <li id="foc_gud_0078__fc_gud_0078_li133571296321"><span>重新执行资源扫描任务。如果仍出现该故障现象，请再次执行资源扫描任务。</span></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="foc_gud_0070.html">常见问题</a>
    </div>
   </div>
  </div>
 </body>
</html>